Kerry Back
accum = (1+ret).cumprod() accum_max = accum.expanding().max() drawdown = accum/accum_max - 1